<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="{$sets->keyword}" />
<meta name="description" content="{$sets->description}" />
<title>三原县信息网</title>
<link rel="stylesheet" href="__ROOT__/Tpl/Public/css/post.css" />
<script type="text/javascript" src="__ROOT__/Public/Jquery/jquery.js"></script>
<script type="text/javascript" src="__ROOT__/Public/Jquery/json.js"></script>
<script type="text/javascript" src="__ROOT__/Public/client_remind.js"></script>
<script type="text/javascript" src="__ROOT__/Tpl/Public/js/header.js"></script>
<script type="text/javascript" src="__ROOT__/Tpl/Public/js/post.js"></script>
</head>

<body>
<include file="./Tpl/Public/header.html"/>
    <div id="map"><img src="__ROOT__/Tpl/Public/images/location.gif" style="position:relative;top:2px;"/>  <a href="/">三原县信息网</a> &gt; {$parent} &gt; {$currentname} </div>
    <div id="main" style="height:auto;padding-bottom:40px;">
        <h2>发布信息</h2>
        <div class="step" style="background-position:0 -60px;">
            <ul>
                <li><span class="num">1</span> <span class="content">{$parent}(<a href="{:U('/Post/index')}" style="color:#06f;text-decoration:none;" onclick="return confirm('重新选择将会丢失当前所填写的所有资料，是否确定重选?') ? true : false">重选</a>)</span></li>
                <li><span class="num">2</span> {$currentname}</li>
                <li  class="select"><span class="num">3</span> 填写信息详情</li>
            </ul>
        </div>
        <form method="post" class="input" name="input">
            <p class="t">填写详细信息</p>
            <dl>
                <dd>当前分类：{$parent} &gt;&gt; {$currentname} <a href="{:U('/Post/index')}" style="color:#06f;text-decoration:none;" onclick="return confirm('重新选择将会丢失当前所填写的所有资料，是否确定重选?') ? true : false">重选</a></dd>
                <dd class="c"><span class="head">有 效 期：</span> <select class="select" name="keep">
                    <option value="">请 选 择 有 效 期</option>
                    <option value="永久有效">永 久 有 效</option>
                    <option value="一年">一 年</option>
                    <option value="一月">一 月</option>
                    <option value="一周">一 周</option>
                </select> <span class="require">*</span> <span class="keep info">信息过期的时间</span><span class="keep success"></span><span class="keep error">请选择一个有效期!</span></dd>
                <dd><span class="head">信息标题：</span> <input type="text" name="title" class="text"/>  <span class="require">*</span> <span class="title info">标题长度2~40位</span><span class="title success"></span><span class="title error">标题格式不合法!</span></dd>
                <volist name="attr" id="value">                
                
                <if condition="$value['type'] eq 0">
                    <dd><span class="head">{$value.name}：</span> <input type="text" name="attr[{$value.nickname}]" class="text attr"/> <span class="require">*</span> <span class="attr_text info">请填写{$value.name}</span><span class="attr_text success"></span><span class="attr_text error">此项不可忽略!</span></dd>
                <elseif condition="$value['type'] eq 1" />
                    <dd><span class="head">{$value.name}：</span> <select class="select" name="attr[{$value.nickname}]"> 
                        <volist name="value['details']" id="v">
                        <option value="{$v}">{$v}</option>
                        </volist>
                    </select> <span class="require">*</span></dd>
                <elseif condition="$value['type'] eq 2" />
                    <dd style="width:auto;"><span class="head">{$value.name}：</span>
                    <volist name="value['details']" id="v">
                        <input type="checkbox" name="attr[{$value.nickname}][]" value="{$v}" class="attr_checkbox"/>{$v}&nbsp;
                    </volist>
                        <span class="require">*</span></dd>
                <elseif condition="$value['type'] eq 3" />
                    <dd><span class="head">{$value.name}：</span> 
                    <volist name="value['details']" id="v">
                        <input type="radio" name="attr[{$value.nickname}]" value="{$v}"/>{$v}&nbsp;
                    </volist>
                        <span class="require">*</span><span class="attr_radio info">请选择{$value.name}</span><span class="attr_radio success"></span><span class="attr_radio error">此项不可忽略!</span></dd>
                </if>
                </dd>
                </volist>
                <dd class="up"><span class="up">上传图片：</span> <input type="text" name="thumbnail[]" class="text" readonly="readonly"/> <input type="button"value="上传" onclick="window.open('__APP__/Public/uploads/num/1', 'pic', 'width=400,height=150,top=200,left=420');" class="bn"/>
                <input type="text" name="thumbnail[]" class="text" readonly="readonly"/> <input type="button" value="上传" onclick="window.open('__APP__/Public/uploads/num/2', 'pic', 'width=400,height=150,top=200,left=420');" class="bn"/>
                <input type="text" name="thumbnail[]" class="text" readonly="readonly"/> <input type="button"  value="上传" onclick="window.open('__APP__/Public/uploads/num/3', 'pic', 'width=400,height=150,top=200,left=420');" class="bn"/></dd>
                <dd><span class="t">详细填写：</span> <textarea name="content"></textarea> <span class="require" style="vertical-align:85px">*</span></dd>
                <div class="important">
                    <dd><span class="head">联系人：</span> <input type="text" name="lianxi" class="text" value="{$userinfo.real_name}"/> <span class="require">*</span> <span class="lianxi info">联系人2~5位</span><span class="lianxi success"></span><span class="lianxi error">联系人格式不合法!</span></dd>
                    <dd><span class="head">联系手机：</span> <input type="text" name="phone" class="text" value="{$userinfo.phone}"/> <span class="require">*</span> <span class="phone info">联系手机必须11位</span><span class="phone success"></span><span class="phone error">联系人电话不合法!</span></dd>
                    <dd><span class="head">联系QQ：</span> <input type="text" name="qq" class="text" value="{$userinfo.qq}"/> <span class="require">*</span> <span class="qq info">QQ位数5~12位</span><span class="qq success"></span><span class="qq error">联系QQ不合法!</span></dd>
                    <dd><span class="head">电子邮箱：</span> <input type="text" name="email" class="text" value="{$userinfo.email}"/> <span class="require">*</span> <span class="email info">填写电子邮件</span><span class="email success"></span><span class="email error">电子邮件不合法!</span></dd>
                </div>
                <dd class="c"><span class="head">验 证 码：</span> <input type="text" name="checkcode" class="check"/> <img src="__ROOT__/index.php/Public/checkCode" style="position:relative;top:10px;cursor:pointer;" onclick="this.src='__ROOT__/index.php/Public/checkCode/id/'+Math.random();" />  <span class="require">*</span> <span class="check loading"><img src="__ROOT__/Tpl/Public/images/loading2.gif" /></span><span class="check info">输入验证码</span><span class="check success"></span><span class="check error">验证码错误!</span></dd>
                <dd><input type="submit" name="send" value="发　布" class="sub"/></dd>
                <input type="hidden" id="flag" value="true"/>
                <input type="hidden" id="root" value="__ROOT__"/>
            </dl>
            {__TOKEN__}
        </form>
    </div>
<include file="./Tpl/Public/footer.html"/>
</body>
</html>